package dataflowscheme.engine.core;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Future;

/**
 * Event created by Main thread intended to stop the Execution Event Parser
 * 
 * @author <a href="mailto:misiak7@gmail.com">Michal Antolik</a>
 *
 */
public class ExecutorEndEvent implements IExecutionEvent {

	/* (non-Javadoc)
	 * @see dataflowscheme.engine.core.IExecutionEvent#execute(ExecutionEventParser executionEventParser, ExecutorService threadExecutor, boolean prinStats)
	 */
	public Future<?> execute(ExecutionEventParser executionEventParser, ExecutorService threadExecutor, boolean prinStats) {
		executionEventParser.stop();
		return null;
	}

}
